<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/4/24
  Time: 13:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%request.setCharacterEncoding("UTF-8");%>
<jsp:useBean id="ps" class="com.example.javabeantest.javaBeanSamples.Person"
             scope="page"/>
<jsp:setProperty name="ps" property="age" />
姓名:<jsp:getProperty  property="name" name="ps" /><br>
性别:<jsp:getProperty  property="sex" name="ps" /><br>
年龄:<jsp:getProperty  property="age" name="ps" /><br>
</body>
</html>
